package net.lab1024.sa.admin.module.business.ball.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 福彩3D开奖结果
 */
@Data
@Slf4j
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_lottery_kl8")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Lotterykl8 {

    /**
     * 期号
     */
    @TableId
    private Integer phase;

    private Integer ball1;
    private Integer ball2;
    private Integer ball3;
    private Integer ball4;
    private Integer ball5;
    private Integer ball6;
    private Integer ball7;
    private Integer ball8;
    private Integer ball9;
    private Integer ball10;
    private Integer ball11;
    private Integer ball12;
    private Integer ball13;
    private Integer ball14;
    private Integer ball15;
    private Integer ball16;
    private Integer ball17;
    private Integer ball18;
    private Integer ball19;
    private Integer ball20;
    /**
     * 说明信息
     */
    @TableField(exist = false)
    private String msg;


    public List<Integer> getNums(){
        return Lists.newArrayList(ball1,ball2,ball3,ball4,ball5,ball6,ball7,ball8,ball9,ball10,ball11,ball12,ball13
                ,ball14,ball15,ball16,ball17,ball18,ball19,ball20);
    }

}
